package com.javaspeak.designpatterns.go4.structural.facade;

/**
 * Provides implementation for a Triangle
 *
 * @author John Dickerson
 */
public class TriangleImpl implements Triangle {

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {

        StringBuilder sb = new StringBuilder();
        sb.append( "   x   \n" );
        sb.append( "  x x  \n" );
        sb.append( " x   x \n" );
        sb.append( "xxxxxxx\n" );

        return sb.toString();
    }
}
